<%@ taglib uri="/struts-tags" prefix="s" %>
<br />
<center>
	<s:form action="Searcher" method="post" theme="simple">
		Search: 
		<s:textfield name="search" size="80"  />
		<s:submit name="dosearch" value="search!" />
		<br />
		<s:radio value="SearchType" list="types" name="searchType" label="Type" listValue="name" listKey="id">Search for:</s:radio>				
	</s:form>
 	
	<%
	if(request.getParameter("search") != null) {
		int search_type = Integer.parseInt(request.getParameter("searchType"));
		switch (search_type)
		{
			case gcontent.action.SearchType.TYPE_IMAGES:
				%> <%@ include file="content_res_img.jsp" %> <%
				break;
			case gcontent.action.SearchType.TYPE_CONTENT:
			case gcontent.action.SearchType.TYPE_ELINKS:
			case gcontent.action.SearchType.TYPE_TORRENTS:
			case gcontent.action.SearchType.TYPE_VIDEOS:
				%> <%@ include file="content_res.jsp" %> <%
				break;			
		}
		
	} %>

</center>
